import request from '@/request/request.js'

// 获取手机号
export const postPhone = (params) => {
	return request({
		url: "/mp/getUserName",
		method: "post",
		data: params,
	})
}

// 登录
export const postLogin = (params) => {
	return request({
		url: "/mp/login",
		method: "post",
		data: params,
	})
}

// 修改昵称和头像
export const putNickNameAvatar = (params) => {
	return request({
		url: "/weiriya/member/updateNickNameAndAvatar",
		method: "put",
		data: params,
	})
}

// 获取用户信息
export const getUserInfo = (params) => {
	return request({
		url: "/mp/getInfo",
		method: "get",
		data: params,
	})
}

// 获取用户未读信息统计
export const getUnRead = (params) => {
	return request({
		url: "/weiriya/member/statistics",
		method: "get",
		data: params,
	})
}